﻿@namespace SimpleBoard.Backend
@inherits LayoutComponentBase

<AntDesign.ProLayout.BasicLayout 
    Logo="@("https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg")"
    MenuData="_menuData">
    <ChildContent>
        @Body
    </ChildContent>
    <FooterRender>
        <FooterView Copyright="2021 Ant Design Blazor" Links="Links"></FooterView>
    </FooterRender>
</AntDesign.ProLayout.BasicLayout>
<SettingDrawer />

@code
{
    private readonly MenuDataItem[] _menuData =
        {
        new MenuDataItem
        {
            Path = "/",
            Name = "欢迎",
            Key = "welcome",
            Icon = "smile",
        },
        new MenuDataItem
        {
            Name = "设备管理",
            Key = "device",
            Children = new MenuDataItem[]
            {
               new MenuDataItem
               {
                   Name = "设备类型管理",
                   Key = "device-type",
                   Path = "/device/type"
               },
               new MenuDataItem
               {
                   Name = "设备管理",
                   Key = "device-list",
                   Path = "/device/list"
               },
            },  
        },
        new MenuDataItem
        {
            Path = "/employee",
            Name = "员工管理",
            Key = "employee",
        }
    };

    public LinkItem[] Links { get; set; } =
    {
        new LinkItem
        {
            Key = "Ant Design Blazor",
            Title = "Ant Design Blazor",
            Href = "https://antblazor.com",
            BlankTarget = true,
        },
        new LinkItem
        {
            Key = "github",
            Title = (RenderFragment)(
    @<Icon Type="github" />),
            Href = "https://github.com/ant-design-blazor/ant-design-pro-blazor",
            BlankTarget = true,
        },
        new LinkItem
        {
            Key = "Blazor",
            Title = "Blazor",
            Href = "https://dotnet.microsoft.com/apps/aspnet/web-apps/blazor?WT.mc_id=DT-MVP-5003987",
            BlankTarget = true,
        }
    };
}